package com.jm.common.util;

import com.jm.common.enums.CMPP2DeliverEnums;
import com.jm.common.enums.CMPP2ResultEnums;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author:JianWu
 * @Date: 2025/1/13  17:48
 */
public class CMPP2DeliverUtil {

    private static Map<String,String> states = new HashMap<>();

    static {
        CMPP2DeliverEnums[] cmpp2ResultEnums = CMPP2DeliverEnums.values();
        for (CMPP2DeliverEnums cmpp2DeliverEnums : cmpp2ResultEnums) {
            states.put(cmpp2DeliverEnums.getState(),cmpp2DeliverEnums.getDescription());
        }
    }

    public static String getResultMessage(String result){
        return states.get(result);
    }
}
